<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<!-- 引入easyui的样式 -->	
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/default/easyui.css">
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/icon.css">
<link rel="stylesheet"  type="text/css" href="${pageContext.request.contextPath}/themes/bootstrap/layout.css">
<!-- js文件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>

<script type="text/javascript">
$(function () {
    $('#tb2').datagrid({  
        title:'学生请假记录',
        width:1000,
        url:'GetLeave',
		queryParams: {			
			uid:"${user.uid}",
		},
        columns: [[
                   { field: 'sname', title: '姓名', width: 100 },  
                   { field: 'cname', title: '班级', width: 100 },
                   { field: 'ldate', title: '申请时间', width: 230 },
                   { field: 'lreson', title: '申请原因', width: 260 },
                   { field: 'lnumber', title: '请假期间联系电话', width:100},
                   { field: 'noreason', title: '未同意原因', width:100 },
                   { field: 'lapprove', title: '审批情况', width:100 }  
               ]] ,
        pagination:true,
        pageSize:5,
        pageList: [5,10,15,20,25,30],
    });  
});
</script>
</head>
<body>
   	<form id="form2" >  
	    <div>
		    <table id="tb2">
		    </table>  
	    </div>
   	</form> 
</body>
</html>